﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http.Formatting;
using System.Text;
using System.Threading.Tasks;
using System.Web.Http;

namespace Peninsula.MVC
{
    public  class HttpApplicationBase:System.Web.HttpApplication
    {
        

        public override void Init()
        {
            base.Init();
        }


        public virtual void Application_Start(object  sender ,EventArgs e) {
           // GlobalConfiguration.Configuration.Formatters.Insert(0, new PlainTextTypeFormatter());//初始化超媒体格式
        }

        #region Application_End
        public virtual void Application_End(object sender, EventArgs e)
        {
        }
        #endregion

        #region Application_AuthenticateRequest
        public virtual void Application_AuthenticateRequest(object sender, EventArgs e)
        {
        }
        #endregion

        #region Application_BeginRequest
        public virtual void Application_BeginRequest(object sender, EventArgs e)
        {
        }

        #endregion

        #region Application_EndRequest
        public virtual void Application_EndRequest(object sender, EventArgs e)
        {
        }
        #endregion

        #region Application_Error
        public virtual void Application_Error(object sender, EventArgs e)
        {
        }
        #endregion

        #region Session_Start
        public virtual void Session_Start(object sender, EventArgs e)
        {
        }
        #endregion

        #region Session_End
        public virtual void Session_End(object sender, EventArgs e)
        {
        }
        #endregion
    }


}
